/*
 * @Descripttion: 
 * @version: 
 * @Author: 玄绮 <shijiahansi@qq.com>
 * @Date: 2021-11-07 17:36:21
 * @LastEditTime: 2021-11-08 09:17:34
 * @LastEditors: VS Code
 */

#if !defined(__TETRIS_h)
#define __TETRIS_h
#include <REG52.H>
#include "51_type.h"
#include "commom.h"
#include "leddz.h"

#define LEDDZ_COL_PORT P0 //点阵列控制端口

typedef struct tetris_block_t
{
    uint8 (*col)[3];
    uint8 index;
    uint8 p_row, p_col;
} tetris_block_t;

//基础页面
extern uint8 gled_col_page[8];

/**
 *   []
 * [][][]
 * 
 *   []
 * [][]
 *   []
 * 
 * [][][]
 *   []
 * 
 *   []
 *   [][]
 *   []
 */
extern uint8 gled_col_1[][3];


uint8 *leddz_operator_add(uint8 *col_buf, const uint8 *col, const tetris_block_t *block);

void leddz_outImg_col_test(tetris_block_t *block2);
#endif // __TETRIS_h
